﻿using OpenTK.Graphics;
using OpenTK.Math;
using System.Drawing;
using Rekx.Graphics;

namespace Rekx.Pong.LevelComponents
{
    /// <summary>
    /// The level's walls used to enclose the playing area.
    /// </summary>
    public class Wall
    {
        Vector3 position = new Vector3();
        DrawableComponent drawComponent = null;



        /// <summary>
        /// Gets the wall's position.
        /// </summary>
        public Vector3 Position
        {
            get
            {
                return position;
            }
        }

        /// <summary>
        /// Get the drawable component.
        /// </summary>
        public DrawableComponent DrawComponent
        {
            get
            {
                return drawComponent;
            }
        }



        /// <summary>
        /// Construct the level wall.
        /// </summary>
        public Wall(Vector3 position, float width, float height)
        {
            this.position = position;
            drawComponent = Rectangle.CreateRectangularComponent(width, height);
        }
    }
}
